import { Module } from '@nestjs/common';
import { AiController } from './ai.controller';
import { PinyinService } from './pinyin.service';
import { TtsService } from './tts.service';
import { HttpModule } from '@nestjs/axios';
import { TranslateService } from './translate.service';
import { GptService } from './gpt.service';

@Module({
  imports: [
    HttpModule.register({
      timeout: 600000,
      maxRedirects: 5,
    }),
  ],
  providers: [PinyinService, TtsService, TranslateService, GptService],
  controllers: [AiController],
  exports: [PinyinService, TtsService, TranslateService],
})
export default class AiModule {}
